﻿using System;

namespace Caramel.Web.Mvc.Validation
{
	public class PropertyModelValidator
	{
		private bool _nextBool = true;

		public PropertyModelValidator Required()
		{
			_nextBool = true;

			return this;
		}

		public PropertyModelValidator RegularExpression(string regex)
		{
			_nextBool = true;

			return this;
		}

		public PropertyModelValidator StringLength(int maximumLength)
		{
			return this.StringLength(0, maximumLength);
		}

		public PropertyModelValidator StringLength(int minumumLength, int maximumLength)
		{
			_nextBool = true;

			return this;
		}

		public PropertyModelValidator Numeric()
		{
			_nextBool = true;

			return this;
		}

		public PropertyModelValidator DateTime()
		{
			_nextBool = true;

			return this;
		}

		public PropertyModelValidator Range(object minValue, object maxValue)
		{
			_nextBool = true;

			return this;
		}
	}
}
